<layout name='Layout/layout_page' />
	<ol class="breadcrumb">
		<li><a href="<{:U('Job/index')}>"><{:L('_menu_job')}></a></li>
      	<li class="active"><{:L(_public_add)}></li>
    </ol>

	<form id="ajaxForm" action="<{:U('Job/save')}>" method="post" class="form-horizontal form-validata">

		<div class="form-group">
			<label class="col-md-1 control-label" for="picname">Thumbnail</label>
			<div class="col-md-11">
				<img class="thumbPic" id="picname_src" src="<{:STATICS}>/image/image.jpg" />
				<input type="hidden" name="picname" id="picname" />
				<p class="pic-btn"><input type="button" value="Upload" class="btn btn-default btn-sm" onclick="uploadImage( '<{:U('Admin/Upload/singleImage')}>' , 'picname')"/> <input type="button" value="Delete" class="btn btn-default btn-sm" onclick="delImage('picname')"/></p>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="title">Company</label>
			<div class="col-md-5">
				<input type="text"
                class="form-control"
				name="company"
				id="company"
				data-rule-required="true"
				/>
			</div>
		</div>
		
		<div class="form-group">
			<label class="col-md-1 control-label" for="cid">Category</label>
			<div class="col-md-11">
				<volist name="train" id="vo">
				<label class="checkbox-inline">
					<input type="checkbox" name="trainItem[]" value="<{$vo.id}>" <?php if(in_array($vo['id'],$list['trainItem'])){echo checked;}?>><{$vo.name}>
				</label>
				</volist>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="from">Position</label>
			<div class="col-md-2">
				<input type="text"
                class="form-control"
				name="position"
				id="position"
				/>
			</div>
			<label class="col-md-1 control-label" for="from">Salary</label>
			<div class="col-md-2">
				<input type="text"
                class="form-control"
				name="salary"
				id="salary"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="keywords">Position Summary</label>
			<div class="col-md-11">
				<textarea name="requ" class="form-control areatext"></textarea>
			</div>
		</div>
		
		<div class="form-group">
			<label class="col-md-1 control-label" for="keywords">Job Description</label>
			<div class="col-md-11">
				<textarea name="duty" class="form-control areatext"></textarea>
			</div>
		</div>
		

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">Only member</label>
			<div class="col-md-3">
				<label class="radio-inline">
					<input type="radio" name="onlyMember" value="1"> Yes
				</label>
				<label class="radio-inline">
					<input type="radio" name="onlyMember" value="0" checked> No
				</label>
			</div>
		</div>	

		<div class="form-group">
			<div class="col-md-11 col-sm-offset-1">
				<button type="submit" class="btn btn-info"><{:L(_public_add)}></button>
			</div>
		</div>
	</form>
<script type="text/javascript">
$("#fid").val("<{$list['fid']}>");
</script>

<input type="hidden" id="menu_action" value="job" />